* this is the main script for extracting ownership links from JSCReg and SReg
* the script executes other scripts that extract entries from registries and add/fix variables

* set dates/date limits for search in SReg and JSCReg
* 17115 = Nov 10, 2006
* 16162 = Apr 1, 2004
* 15471 = May 11, 2002

*** BEFORE ORANGE REVOLUTION
global maxdate 16162
global filedate "04012004"

* Delo/UP, SReg+JSCReg owner search
do owner_search_Delo_UP.do

* full JSCReg sample owner search
do owner_search_full_sample_JSCReg_only.do

*** AFTER ORANGE REVOLUTION
global maxdate 17115
global filedate "11102006"

* Delo/UP, SReg+JSCReg owner search
do owner_search_Delo_UP.do

* full JSCReg sample owner search
do owner_search_full_sample_JSCReg_only.do

*** 2002 "PLACEBO"
global maxdate 15471
global filedate "05112002"

* Delo/UP, SReg+JSCReg owner search
do owner_search_Delo_UP.do

* full JSCReg sample owner search
do owner_search_full_sample_JSCReg_only.do

* erase temporary files
erase JSCReg_working.dta
erase SReg_working.dta
